#include <stdio.h>
#define ROWS 3
#define COLS 5
void arr_show(int [][COLS], int);
void arr_double(int [][COLS], int);
int main(void)
{
	int array[ROWS][COLS] =
	{
		{1, 2, 3, 4, 5},
		{3, 4, 5, 6, 7},
		{7, 8, 9, 10, 11}
	};
	arr_show(array, ROWS);
	arr_double(array, ROWS);
	arr_show(array, ROWS);
	
	return 0;
}
void arr_show(int ar[][COLS], int rows)
{
	int i =0,j =0;
	
	for(i =0; i< rows; i++)
		for(j =0; j< COLS; j++)
			printf("%d\t",ar[i][j]);
	printf("\n");
}
void arr_double(int ar[][COLS], int rows)
{
	int i = 0, j = 0;
	
	for(i =0; i< rows; i++)
		for(j =0; j< COLS; j++)	
			ar[i][j] = (ar[i][j])*2;
	return;
}
